/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.java.service;

import com.java.dao.NguoidungDAO;
import com.java.mapbean.Nguoidung;
import java.util.List;

/**
 *
 * @author quannq
 */
public class NguoiDungService extends NguoidungDAO {

    public void saveNguoiDung(Nguoidung nguoidung) {
        save(nguoidung);
    }

    public void updateNguoiDung(Nguoidung nguoidung) {
        update(nguoidung);
    }

    public List<Nguoidung> getEmp() {
        return findEmp();
    }

    public List<Nguoidung> getCus() {
        return findCus();
    }

    public Nguoidung findId(int id) {
        return findById(id);
    }

    public Nguoidung findUserName(String username) {
        return findUsername(username);
    }
}
